﻿namespace Microsoft.Practices.CompositeUI.EventBroker
{
    /// <summary>
    /// 	Defines the scope for a publication of an <see cref = "EventTopic" />.
    /// </summary>
    public enum PublicationScope
    {
        /// <summary>
        /// 	Indicates that the topic should be fired on all the <see cref = "WorkItem" /> instances,
        /// 	regarding where the publication firing occurred.
        /// </summary>
        Global,

        /// <summary>
        /// 	Indicates that the topic should be fired only in the <see cref = "WorkItem" /> instance where 
        /// 	the publication firing occurred.
        /// </summary>
        WorkItem,

        /// <summary>
        /// 	Indicates that the topic should be fired in the <see cref = "WorkItem" /> instance where 
        /// 	the publication firing occurred, and in all the <see cref = "WorkItem" /> descendants.
        /// </summary>
        Descendants,
    }
}